package com.yunfeisoft.business.service.impl;

import com.yunfeisoft.business.dao.inter.DonationItemDao;
import com.yunfeisoft.business.model.DonationItem;
import com.yunfeisoft.business.service.inter.DonationItemService;
import com.yunfeisoft.common.base.BaseServiceImpl;
import com.yunfeisoft.common.sql.separation.DataSourceChange;
import com.yunfeisoft.common.utils.Page;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * ClassName: DonationItemServiceImpl
 * Description: 捐赠物品详细service实现
 * Author: Jackie liu
 * Date: 2020-05-14
 */
@Service("donationItemService")
public class DonationItemServiceImpl extends BaseServiceImpl<DonationItem, String, DonationItemDao> implements DonationItemService {

    @Override
    @DataSourceChange(slave = true)
    public Page<DonationItem> queryPage(Map<String, Object> params) {
        return getDao().queryPage(params);
    }

    @Override
    public List<DonationItem> queryByDonationId(String donationId) {
        return getDao().queryByDonationId(donationId);
    }
}